<!DOCTYPE html>
<html>
<head>
  <title>{{title}}</title>
  {{> includes/head.html }}
  <link rel="stylesheet" type="text/css" media="all" href="/redist/npm/bootstrap-markdown/css/bootstrap-markdown.min.css">
  {{^isLib}}
  <link rel="stylesheet" type="text/css" media="all" href="/redist/npm/select2/select2.css">
  <link rel="stylesheet" type="text/css" media="all" href="/redist/npm/select2-bootstrap-css/select2-bootstrap.css"> <!-- Bootstrap 3 theme -->
  {{/isLib}}
  <link rel="stylesheet" type="text/css" media="all" href="/css/scriptPage.css">
</head>
<body>
  {{> includes/header.html }}
  <div class="container-fluid">
    <form action="edit" method="post">
      <div class="row">
        <div class="container-fluid col-sm-8">
          <div class="row">
            <div class="col-xs-12">
              {{> includes/scriptPageHeader.html }}
              <div class="panel panel-default">
                <div class="panel-body">
                  <h2>脚本描述</h2>
                  <p><strong>使用 <a target="_blank" href="https://help.github.com/articles/github-flavored-markdown">GitHub Flavored Markdown</a> 作为格式化工具.</strong></p>
                  <div class="user-content form-group">
                    <textarea name="about" data-provide="markdown" data-iconlibrary="fa" rows="20" class="col-xs-12">{{script.about}}</textarea>
                  </div>
                  <div class="form-group">
                    <button type="submit" class="btn btn-success"><i class="fa fa-fw fa-save"></i> 保存</button>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
        <div class="container-fluid col-sm-4">
          {{#script}}
          {{^isLib}}
          <div class="panel panel-default">
            <div class="panel-heading">
              <div class="panel-title">脚本标签</div>
            </div>
            <div class="panel-body">
              <input type="hidden" id="groups" name="groups" style="width: 100%;" />
            </div>
          </div>
          {{/isLib}}
          {{> includes/scriptAuthorToolsPanel.html }}
          {{> includes/scriptModToolsPanel.html }}
          {{/script}}
        </div>
      </div>
    </form>
  </div>
  {{> includes/footer.html }}
  {{> includes/scripts/lazyIconScript.html }}
  {{> includes/scripts/markdownEditor.html }}
  {{^isLib}}
    {{> includes/scripts/groupSelector.html }}
  {{/isLib}}
</body>
</html>
